from Project.HTools.encry.encry_panel import EncryPanel
from Project.HTools.encry.hash.hash_main import HashPanelMain
from Project.HTools.encry.sm4.sm4_main import SM4Main
from Project.HTools.encry.url.url_main import URLMain
import wx


class EncryPanelMain(EncryPanel):
    def __init__(self, parent):
        EncryPanel.__init__(self, parent)
        self.__init_view()

    def __init_view(self):
        self.encry_note_book.AddPage(HashPanelMain(self.encry_note_book), 'hash')
        self.encry_note_book.AddPage(URLMain(self.encry_note_book), 'URL编解码')
        self.encry_note_book.AddPage(SM4Main(self.encry_note_book), 'SM4')
        # self.encry_note_book.AddPage(RSAMain(self.encry_note_book), 'RSA')

    def onChoose(self, event):
        if event.GetSelection() == 3:
            wx.MessageDialog(self, '功能还未完善\nTODO 现在由其他端生成的key无法加解密', '使用提醒', wx.OK).ShowModal()
